<?php
//$_FILES 文件上传信息
var_dump($_FILES);
$filename=$_FILES['myfile']['name'];
$type=$_FILES['myfile']['type'];
$tmp_name=$_FILES['myfile']['tmp_name'];
$size=$_FILES['myfile']['size'];
$error=$_FILES['myfile']['error'];

//将服务器上临时文件移动到指定文件目录下
//move_uploaded_file($tmp_name,$destination);
move_uploaded_file($tmp_name,"up/".$filename);

//copy($src,$dst):将文件拷贝到指定目录,成功返回true,失败返回false
//copy($tmp_name,"up/".$filename);